<?php 
	$item = new Zendvn_Model_Table_Manufacturers();
	$Items = $item->listItem($this->arrParam, array('task' => 'list-manufacturers'));
	
	if(!empty($Items)):
		$config = new Zendvn_Controller_Config(array('module'=> 'admin',
													'fileConfig'=>'manufacturers.ini'));
		$itemConfig = $config->getConfig('item');
		$xhtml = '<ul>';
		foreach ($Items as $k => $v){
			$name		= Zendvn_Filter_Filter::filterContent($v['name'], 'filter');
			$picture	= $v['picture'];
			if(file_exists($itemConfig['uploadDir'] . '/' . $picture) && !empty($picture)){
				$picture = $itemConfig['uploadUrl'] . '/' . $picture;
			}else{
				continue;
			}
			$xhtml .= '<li><a href="#"><img src="' . $picture . '" alt="beboshop" title="' . $name . '" /></a></li>';
		}
		$xhtml .= '</ul>';
?>
<div id="brand">
	<div class="brand-left"></div>
	<div class="brand-center">
		<div class="list-items">
			<?php echo $xhtml?>
		</div>
	</div>
	<div class="brand-right"></div>
	<div class="clr"></div>
</div>
<?php endif;?>

<script type="text/javascript">
$(document).ready(function(){
	$('.list-items ul').bxSlider({
    	  minSlides: 1,
    	  maxSlides: 100,
    	  slideWidth: 200,
    	  slideMargin: 12,
    	  ticker: true,
    	  speed: 35000
    	});
});
</script>